import request from "@/utils/request";

export function listKqAllPriceInfos(query) {
  return request({
    url: "/work/kqPriceInfo/",
    method: "get",
    params: query
  });
}

// 查询项目详细
export function getKqPriceInfo(id) {
  return request({
    url: "/work/kqPriceInfo/" + id + "/",
    method: "get"
  });
}

// 修改项目
export function updateKqPriceInfo(data) {
  return request({
    url: "/work/kqPriceInfo/" + data.id + "/",
    method: "put",
    data: data
  });
}

// 新增项目
export function addKqPriceInfo(data) {
  return request({
    url: "/work/kqPriceInfo/",
    method: "post",
    data: data
  });
}

// 删除
export function delKqPriceInfo(id) {
  return request({
    url: "/work/kqPriceInfo/" + id,
    method: "delete"
  });
}
